package com.chushouya.manager.dto.admin.clerk;

import com.chushouya.manager.constants.ClerkStatusEnum;
import com.chushouya.manager.constants.ClerkUserTypeEnum;
import com.chushouya.manager.constants.ClerkWorkStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("业务员列表")
@Data
public class ClerkListDTO {

    @ApiModelProperty("id")
    private Long clerkId;

    @ApiModelProperty("业务员姓名")
    private String clerkName;

    @ApiModelProperty("业务员电话")
    private String clerkPhone;

    @ApiModelProperty("公司")
    private String company;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("业务员角色类型")
    private Integer userType;

    @ApiModelProperty("加盟商渠道ID")
    private Long partnerId;

    @ApiModelProperty("加盟商渠道名称")
    private String partnerName;

    @ApiModelProperty("业务员角色类型")
    private String userTypeText;

    @ApiModelProperty("上门城市编码")
    private Long cityCode;

    @ApiModelProperty("上门城市")
    private String city;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("工作状态")
    private Integer workStatus;

    @ApiModelProperty("停单类型")
    private Integer stopDispatchType;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("自动派单状态")
    private Integer autoDispatchStatus;

    @ApiModelProperty("状态")
    private String statusDesc;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("工作状态")
    private String workStatusDesc;
    public String getUserTypeText() {
        return ClerkUserTypeEnum.getDesc(this.userType);
    }
//
    public String getStatusDesc() {
        return ClerkStatusEnum.getDesc(this.status);
    }

    public String getWorkStatusDesc() {
        return ClerkWorkStatusEnum.getDesc(this.workStatus);
    }
}
